package cn.anquing.demo.mybatisplus.component.event;

import org.springframework.context.ApplicationEvent;

/**
使用方法：
 DemoEvent demoEvent1 = new DemoEvent(new Object());
 demoEvent1.setName("test");
 // applicationContext.publishEvent(demoEvent1);
 */
public class DemoEvent extends ApplicationEvent {

    public DemoEvent(Object source) {
        super(source);
    }

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
